package org.fing.edu.uy.init.properties.mbean;

import org.fing.edu.uy.esbadp.core.entity.DMAdpConfigProperties;
import org.fing.edu.uy.esbadp.core.entity.DMAdpMonitorMechanisms;
import org.fing.edu.uy.esbadp.core.entity.DMAdpMonitorProperties;
import org.fing.edu.uy.esbadp.core.entity.DMAdpServiceRequirements;
import org.fing.edu.uy.esbadp.core.entity.DMAdpServices;
import org.fing.edu.uy.esbadp.core.registry.RegistryManager;
import org.fing.edu.uy.esbadp.init.AdpConfigurationLoader;

public class EsbAdaptativePropertiesLoaderServices implements EsbAdaptativePropertiesLoaderServicesMBean{

	@Override
	public void reloadAdpAction() {
		AdpConfigurationLoader adpConf = new AdpConfigurationLoader();
		adpConf.registerAdpAction();		
	}

	@Override
	public void reloadAdpServiceRequirements() {
		AdpConfigurationLoader adpConf = new AdpConfigurationLoader();
		adpConf.registerAdpServiceRequirements();		
	}

	@Override
	public void reloadAdpMonitorMechanism() {
		AdpConfigurationLoader adpConf = new AdpConfigurationLoader();
		adpConf.registerAdpMonitorMechanism();
	}

	@Override
	public void reloadAdpMonitorProperties() {
		AdpConfigurationLoader adpConf = new AdpConfigurationLoader();
		adpConf.registerAdpMonitorProperties();
	}

	@Override
	public void reloadConfigProperties() {
		AdpConfigurationLoader adpConf = new AdpConfigurationLoader();
		adpConf.loadConfigProperties();
	}

	@Override
	public DMAdpServices getAdpServices() {
		return RegistryManager.getInstance().getAdpServices();
	}

	@Override
	public DMAdpServiceRequirements getAdpServiceRequirements() {
		return RegistryManager.getInstance().getAdpServiceRequirements();
	}

	@Override
	public DMAdpMonitorMechanisms getAdpMonitorMechanism() {
		return RegistryManager.getInstance().getAdpMonitorMechanism();
	}

	@Override
	public DMAdpMonitorProperties getAdpMonitorProperties() {
		return RegistryManager.getInstance().getAdpMonitorProperties();
	}

	@Override
	public DMAdpConfigProperties getAdpConfigProperties() {
		return RegistryManager.getInstance().getAdpConfigProperties();
	}
	
	
	

}
